package udp.message;

import util.ConfigurationHelper;


public class ReportReplicaMessage extends UdpMessage {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	String erroneousReplicaId;
	int erroneousReplicaPort;
	String reporterSource;
	
	
	public ReportReplicaMessage(String reporterSource, String erroneousReplicaId) {
		super();

		this.erroneousReplicaPort = ConfigurationHelper.getIntProperty(erroneousReplicaId + ".replica.port");
		this.erroneousReplicaId = erroneousReplicaId;

		this.reporterSource = reporterSource;
	}


	public String getErroneousReplicaId() {
		return erroneousReplicaId;
	}


	public void setErroneousReplicaId(String erroneousReplicaId) {
		this.erroneousReplicaId = erroneousReplicaId;
	}


	public int getErroneousReplicaPort() {
		return erroneousReplicaPort;
	}


	public void setErroneousReplicaPort(int erroneousReplicaPort) {
		this.erroneousReplicaPort = erroneousReplicaPort;
	}


	public String getReporterSource() {
		return reporterSource;
	}


	public void setReporterSource(String reporterSource) {
		this.reporterSource = reporterSource;
	}


	
	
	
}
